﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Concordia.Models.cs_Registration
{
    public class cs_Registration_Page1
    {

        //See http://regexlib.com for details
        [Required]
        [Display(Name = "First Name")]
        [RegularExpression(@"^[a-zA-Z]+(([\'\,\.\-][a-zA-Z])?[a-zA-Z]*)*$", ErrorMessage = "Invalid Firstname")]
        public string FirstName { get; set; }
        
        [Required]
        [Display(Name = "Last Name")]
        [RegularExpression(@"^[a-zA-Z]+(([\'\,\.\-][a-zA-Z])?[a-zA-Z]*)*$", ErrorMessage = "Invalid Lastname")]
        public string LastName { get; set; }

        [Required]
        [Display(Name = "SSN")]
        [RegularExpression(@"^(\d{3}-\d{2}-\d{4})|(\d{3}\d{2}\d{4})$", ErrorMessage = "Invalid SSN")]
        public string SSN { get; set; }

        [Required]
        [Display(Name = "Account Number")]
        [RegularExpression(@"^\d+$", ErrorMessage = "Invalid Account Number")] //Positive Integer Value
        public int AccountNumber { get; set; }

        //[Required]
        //public string ChallengePhrase { get; set; }
    }
}